<?php 
global $header;
global $footer;
global $control;

global $id;
global $email;
global $message;
global $error;

global $featureManager;
$header['title'] = 'Regiter new account';
$header['head'] = '';
$header['intro'] = '<strong>QuickMerger</strong> is the way you make a dictionary oriented with source glossaries. First prepare your source glossaries, and you may then quickly and easily make your own dictionary with one click. After that, your dictionary is still editable &mdash; add/modify/remove a term or a definition in it, or even sort them. <a href="#">See more</a>. ';
$featureManager->apply("com.yizin.platform.site.header", $header);
$featureManager->apply("com.yizin.platform.site.footer", $footer);
$featureManager->apply("com.yizin.platform.site.control", $control);

?>
<?= $header['html']?>
<div class="container-L">
	<?=$control['html']?>
</div>
<div class="container-R">
	<?=Utils::showMessage($message)?>
	<form method="post" action="<?=REQUEST_BASE?>register/">
		<h3>Regiter your QuickMerger ID</h3>
		<table class="form">
			<tr>
				<th><label for="username">Username</label></th>
				<td><input type="text" name="id" id="username" value="<?=$id?>" class="text text-long" /><?=Utils::showFormError($error['id'])?></td>
			</tr>
			<tr>
				<th><label for="email">E-mail</label></th>
				<td><input type="text" name="email" id="email" value="<?=$email?>" class="text text-long" /><?=Utils::showFormError($error['email'])?></td>
			</tr>
			<tr>
				<th><label for="password">Password</label></th>
				<td><input type="password" name="password" id="password" value="<?=$password?>" class="text text-long" /><?=Utils::showFormError($error['password'])?></td>
			</tr>
			<tr>
				<th><label for="retype-password">Retype Password</label></th>
				<td><input type="password" name="password1" id="password" value="<?=$password1?>" class="text text-long" /><?=Utils::showFormError($error['password1'])?></td>
			</tr>
			<tr>
				<th></th>
				<td><input type="submit" value="Register" class="button" /></td>
			</tr>
		</table>
	</form>
</div>
<?= $footer['html']?>
